package com.tian.mapper;

import com.tian.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author tianwc 公众号：java后端技术全栈、面试专栏
 * @version 1.0.0
 * @date 2023年05月09日 20:48
 * 博客地址：<a href="http://woaijava.cc/">博客地址</a>
 */
@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    User selectByPrimaryKey(Long id);

    User selectByPhone(String phone);

    User selectByInvitationCode(String invitationCode);

    List<User> selectAll();

    int updateByPrimaryKey(User record);
}